package chp02;

public class Test13 {

    public static void main(String[] args) {
        //获取数字的各个位的数字
        //个位是8 十位是4 百位是6 千位是9
        int num = 9648;

        int ge = num % 10;
        System.out.println("个位:"+ge);
        int shi = num / 10 % 10;
        System.out.println("十位:"+shi);
        int bai = num / 100 % 10;
        System.out.println("百位:"+bai);
        int qian = num / 1000;
        System.out.println("千位:"+qian);


    }
}
